import Layout from '@/layout'
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      // 如果嵌套路由中有 path 为空，当访问父级路由时，会展示该规则对应的子组件，可以理解为：是当前嵌套路由的默认路由
      path: '',
      name: 'employees',
      component: () => import(/* webpackChunkName: "list-detail" */ '@/views/employees/index'),
      meta: { title: '员工', icon: 'people' }
    },
    {
      path: 'detail',
      name: 'employeesDetails',
      hidden: true,
      component: () => import(/* webpackChunkName: "list-detail" */ '@/views/employees/detail')
    }
  ]
}
